package com.pig4cloud.pig.admin.service.modules;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.admin.api.dto.ChatPrivateDTO;
import com.pig4cloud.pig.admin.api.entity.modules.ChatPrivate;

import java.util.List;
/**
 * <p>
 * 私聊 服务类
 * </p>
 *
 * @author qichao
 * @since 2024-08-08
 */
public interface IChatPrivateService extends IService<ChatPrivate> {

	/**
	 * 私聊列表
	 * @param senderUser
	 * @param receiverUser
	 * @return
	 */
	List<ChatPrivate> queryList(String senderUser,String receiverUser);


	/**
	 * 保存私聊
	 * @param chatPrivateDTO
	 * @return
	 */
	Boolean saveChat(ChatPrivateDTO chatPrivateDTO);


	/**
	 * 撤回私聊
	 * @param chatPrivateDTO
	 * @return
	 */
	Boolean recallChat(ChatPrivateDTO chatPrivateDTO);
}
